#! /bin/bash

mount /home/sny/BACKUP/IMG/ROOT.img /mnt/gentoo

cp /etc/resolv.conf /mnt/etc/resolv.conf

mount -o bind /proc /mnt/gentoo/proc

mount --rbind /sys /mnt/gentoo/sys
mount --make-rslave /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
mount --make-rslave /mnt/gentoo/dev
mount --bind /run /mnt/gentoo/run
mount --make-slave /mnt/gentoo/run

echo dont forget
echo env-update
echo source /etc/profile

chroot /mnt/gentoo /bin/env -i TERM=$TERM /bin/bash
